package com.cr.business.controller;

import com.cr.business.service.CountService;
import com.cr.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 首页统计信息
 */
@RestController
@RequestMapping("/index")
public class IndexCountController {

    @Resource
    private CountService countService;

    /**
     * 获取首页统计信息
     */
    @GetMapping("count")
    public AjaxResult getCount() {
        return AjaxResult.success(countService.getData());
    }

}
